source_files = files(
  'AsyncMutex.cpp',
  'Event.cpp',
  'Latch.cpp',
  'Semaphore.cpp',
  'SyncWait.cpp',
  'ThreadPool.cpp',
)

lib = library('coroutines',
  source_files,
  include_directories: includes,
  cpp_args: compile_args,
  install: true,
  dependencies: dependencies)

pkg = import('pkgconfig')
pkg.generate(lib)

dep = declare_dependency(
  include_directories: includes,
  link_with: lib,
  dependencies: dependencies)

dependencies += dep
